package hu;

import java.util.*;

public class hu38 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double length = sc.nextInt();
        double sum = length;
        for (int i = 0; i < 4; i++) {
            sum += length;
            length = length / 2;
        }
        System.out.println(sum);
        System.out.println(length / 2);
    }
}
